<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<nav th:fragment="menu(n)" class="ui inverted  segment">
    <div class="ui container">
        <div class="ui inverted   secondary stackable menu">
            <h2 class="ui teal header item">CUMT</h2>
            <h3 class="ui teal header item">在线答题系统</h3>
            <a href="#" th:href="@{/teacher/tea-index}" class="  item " th:classappend="${n==6} ? 'active'">首页</a>
            <a href="#" th:href="@{/teacher/tea-chapter}" class="  item " th:classappend="${n==1} ? 'active'">章节</a>
            <a href="#" th:href="@{/teacher/tea-point}" class=" item " th:classappend="${n==2} ? 'active'">知识点</a>
            <a href="#" th:href="@{/teacher/tea-question}" class=" item " th:classappend="${n==3} ? 'active'">题目</a>
            <a href="#" th:href="@{/teacher/tea-paper}" class=" item " th:classappend="${n==4} ? 'active'">试卷</a>
            <a href="#" th:href="@{/teacher/tea-grade}" class=" item " th:classappend="${n==5} ? 'active'">成绩</a>

            <div class="right menu   ">
                <div class="ui dropdown item">
                    <div class="text">
                        <!--                        <img src="https://unsplash.it/100/100?image=1005" alt="" class="ui avatar image">-->
                        <span th:text="${session.teacher.name}">Zhaohaihang</span>
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="#" th:href="@{/teacher/update-pass}" class="item">修改密码</a>
                        <a href="#" th:href="@{/teacher/logout}" class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</nav>

</body>
</html>